package com.yuyou.train.user.vo.req;

import java.util.List;

import org.apache.commons.lang3.StringUtils;

import com.yuyou.train.util.bean.ResBoolSimpleInfo;

public class ReqBehaviorHwComment {

	private String userFileUrl;
	
	private String userFileName;
	
	private String fileSourceName;
	
	private List<String> goodList;
	
	private List<String> badList;

	
	public static ResBoolSimpleInfo<String> validate(ReqBehaviorHwComment req){
		ResBoolSimpleInfo<String> res=new ResBoolSimpleInfo<String>();
		if(req==null){
			res.setSuccess(false);
			res.setMessage("hwNeedComment不能为空");
			return res;
		}
		else if(StringUtils.isEmpty(req.getUserFileUrl())){
			res.setSuccess(false);
			res.setMessage("userFileUrl不能为空");
			return res;
		}		
		else if(StringUtils.isEmpty(req.getUserFileName())){
			res.setSuccess(false);
			res.setMessage("userFileName不能为空");
			return res;
		}		
		return ResBoolSimpleInfo.getSuccessInfo();
	}
	
	public String getFileSourceName() {
		return fileSourceName;
	}

	public void setFileSourceName(String fileSourceName) {
		this.fileSourceName = fileSourceName;
	}

	public String getUserFileUrl() {
		return userFileUrl;
	}

	public void setUserFileUrl(String userFileUrl) {
		this.userFileUrl = userFileUrl;
	}

	public String getUserFileName() {
		return userFileName;
	}

	public void setUserFileName(String userFileName) {
		this.userFileName = userFileName;
	}

	public List<String> getGoodList() {
		return goodList;
	}

	public void setGoodList(List<String> goodList) {
		this.goodList = goodList;
	}

	public List<String> getBadList() {
		return badList;
	}

	public void setBadList(List<String> badList) {
		this.badList = badList;
	}
	

	
	

}
